
const KEY_TYPE_STORAGE_KEY = '__global_key_type__';

export function setStrategyType(value: string | null = 'none') {
  sessionStorage.setItem(KEY_TYPE_STORAGE_KEY, JSON.stringify(value));
}

export function getStrategyType(): string {
  const result: string = sessionStorage.getItem(KEY_TYPE_STORAGE_KEY) || 'none';
  return JSON.parse(result)
}
